package com.marchsoft.musicalstore.repository;

import com.marchsoft.musicalstore.entity.Instrument;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 源
 * Date: 2019-11-17
 * Time: 11:19
 */
public interface InstrumentRepository extends JpaRepository<Instrument,Integer> {

    List<Instrument> findByStateAndType(Integer state,Integer type, Pageable page);
    List<Instrument> findByState(Integer state, Pageable page);

}
